function $(props) {
    if (props[0] === "#") {
        return document.getElementById(props.slice(1));
    } else if (props[0] === ".") {
        return document.getElementsByClassName(props.slice(1));
    } else {
        return document.getElementsByTagName(props);
    }
}
